{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static django_bootstrap5 widget_tweaks %}
{% block title %}Interim Meetings to be Announced{% endblock %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static 'ietf/css/select2.css' %}">
    <link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block content %}
    {% origin %}
    <h1>Interim Meetings to be Announced</h1>
    {% include 'meeting/interim_nav.html' %}
    {% if meetings %}
        <table id="announce-interim-meetings-table"
               class="table table-sm table-striped tablesorter">
            <thead>
                <tr>
                    <th scope="col" data-sort="date">Date</th>
                    <th scope="col" data-sort="group">Group</th>
                    <th scope="col" data-sort="name">Name</th>
                </tr>
            </thead>
            <tbody>
                {% for meeting in meetings %}
                    <tr id="row-{{ forloop.counter }}{% if meeting.responsible_group.parent %}-{{ meeting.responsible_group.parent.acronym }}{% endif %}-{{ meeting.responsible_group.acronym }}">
                        <td>{{ meeting.date }}</td>
                        <td>{{ meeting.responsible_group.acronym }}</td>
                        <td>
                            <a class="interim-meeting-link"
                               href="{% url 'ietf.meeting.views.interim_request_details' number=meeting.number %}">
                                {{ meeting.number }}
                            </a>
                        </td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p class="alert alert-info">No interim meetings awaiting announcement.</p>
    {% endif %}
{% endblock %}
{% block js %}
    <script src="{% static 'ietf/js/select2.js' %}"></script>
    <script src="{% static "ietf/js/list.js" %}"></script>
    <script src="{% static 'ietf/js/meeting-interim-request.js' %}"></script>
{% endblock %}